﻿using Abp.Domain.Repositories;
using RMM.Core.Entity.Orders;
using RMM.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RMM.Core.Orders
{
    public class OrderService : EntityDomainService<Order,long> , IOrderService
    {
        private readonly IRepository<Order, long> _orderRepository;

        public OrderService(IRepository<Order, long> orderRepository)
            :base(orderRepository)
        {
            _orderRepository = orderRepository;
        }


        public Task<IQueryable<Order>> GetOrderListAsync()
        {
            var result = _orderRepository.GetAll();
            return Task.FromResult(result);
        }
    }
}
